package com.hliushi.learn.bean;

import java.math.BigDecimal;
import java.util.Date;

public class Book {
    /**
    * 图书号
    */
    private Long bookId;

    /**
    * 书名
    */
    private String name;

    /**
    * 作者
    */
    private String author;

    /**
    * 出版社
    */
    private String publish;

    /**
    * ISBN
    */
    private String isbn;

    /**
    * 简介
    */
    private String introduction;

    /**
    * 语言
    */
    private String language;

    /**
    * 价格
    */
    private BigDecimal price;

    /**
    * 出版日期
    */
    private Date pubdate;

    /**
    * 分类号
    */
    private Integer classId;

    /**
    * 书架号
    */
    private Integer pressmark;

    /**
    * 状态
    */
    private Short state;

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getPressmark() {
        return pressmark;
    }

    public void setPressmark(Integer pressmark) {
        this.pressmark = pressmark;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bookId=").append(bookId);
        sb.append(", name=").append(name);
        sb.append(", author=").append(author);
        sb.append(", publish=").append(publish);
        sb.append(", isbn=").append(isbn);
        sb.append(", introduction=").append(introduction);
        sb.append(", language=").append(language);
        sb.append(", price=").append(price);
        sb.append(", pubdate=").append(pubdate);
        sb.append(", classId=").append(classId);
        sb.append(", pressmark=").append(pressmark);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}